package com.ithuameng.generator;

import com.baomidou.mybatisplus.generator.AutoGenerator;
import org.springframework.stereotype.Service;

@Service
public class CodeGenerator extends SuperGenerator {
	
	public void generator(String tableName) {
		AutoGenerator mpg = getAutoGenerator(tableName);
		mpg.execute();
		if (tableName == null) {
			System.err.println(" Generator Success !");
		} else {
			System.err.println(" TableName【 " + tableName + " 】" + "Generator Success !");
		}
	}
}
